package com.wangshouyu.mp.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2021年03月17日 17:48
 * @description 用户信息列表请求
 */
public class UserInfoListRequest implements Serializable {

    /**
     * 用户列表
     */
    @SerializedName(value = "user_list")
    @JsonProperty(value = "user_list")
    @JSONField(name = "user_list")
    private List<UserInfoRequest> userList;

    public List<UserInfoRequest> getUserList() {
        return userList;
    }

    public void setUserList(List<UserInfoRequest> userList) {
        this.userList = userList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserInfoListRequest that = (UserInfoListRequest) o;
        return Objects.equals(userList, that.userList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userList);
    }

    @Override
    public String toString() {
        return "UserInfoListRequest{" +
                "userList=" + userList +
                '}';
    }
}
